package com.gxa.log.controller;

import com.gxa.log.cofig.OperateLogConfig;
import com.gxa.log.entity.OperateLog;
import com.gxa.log.service.OperService;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 操作日志表(Oper)表控制层
 *
 * @author makejava
 * @since 2021-05-13 14:32:28
 */
@RestController
@RequestMapping("operate")
public class OperController {
    /**
     * 服务对象
     */
    @Resource
    private OperService operService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    @OperateLogConfig(OperateModule = "测试",OperateType = "查询",OperateDesc = "查询功能")
    public OperateLog selectOne(Integer id) {
        return this.operService.queryById(id);
    }

}
